import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSDominionAuctionCityHelper } from "./SeqSDominionAuctionCityHelper";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionAuctionCityInfo
    
    export  class SDominionAuctionCityInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionAuctionCityInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSDominionAuctionCityHelper.write(arg1, this.dominionAuctionCitys);
            this.auctionId.__write(arg1);
            arg1.writeInt(this.lowPrice);
            arg1.writeInt(this.source);
            arg1.writeInt(this.usedSource);
            arg1.writeLong(this.combat);
            arg1.writeLong(this.cityOwnCombat);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.dominionAuctionCitys = SeqSDominionAuctionCityHelper.read(arg1);
            this.auctionId = new DominionId();
            this.auctionId.__read(arg1);
            this.lowPrice = arg1.readInt();
            this.source = arg1.readInt();
            this.usedSource = arg1.readInt();
            this.combat = arg1.readLong();
            this.cityOwnCombat = arg1.readLong();
            return;
        }

        public /* const */_type: int=2073;

        public /* var */dominionAuctionCitys: Array<any>;

        public /* var */auctionId: DominionId;

        public /* var */lowPrice: int;

        public /* var */source: int;

        public /* var */usedSource: int;

        public /* var */combat: number;

        public /* var */cityOwnCombat: number;

        public static /* var */_regist: SDominionAuctionCityInfo;
    }

            SDominionAuctionCityInfo._regist = new SDominionAuctionCityInfo(true);
        